<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class Store_stationTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
	    $data=[
	    	[
			    'id'=>1,
			    'station_id'=>1,
			    'store_id'=>1,
			    'name'=>'收银员',
			    'num'=>2,
			    'status'=>1,
			    'start_time'=>date("Y-m-d H:i:s",time()),
			    'end_time'=>date("Y-m-d H:i:s",time()+3600),
			    'company_id'=>1,
			    'created_at' => Carbon::now(),
			    'updated_at' => Carbon::now()
		    ],
		    [
				    'id'=>2,
				    'station_id'=>2,
				    'store_id'=>1,
				    'name'=>'保安',
				    'num'=>2,
				    'status'=>1,
				    'start_time'=>date("Y-m-d H:i:s",time()),
				    'end_time'=>date("Y-m-d H:i:s",time()+3600),
			        'company_id'=>1,
				    'created_at' => Carbon::now(),
				    'updated_at' => Carbon::now()
		    ]
	    ];
	    DB::table('store_station')->insert($data);
    }
}
